#include "element.h"
#include "visitor.h"
#include <iostream>

void Element::Accept(Visitor* vis)
{
}

void ConcreteElementA::Accept(Visitor* vis)
{
    std::cout << "visiting ConcreteElementA..." << std::endl;
    vis->VisitConcreteElementA(this);
}

void ConcreteElementB::Accept(Visitor* vis)
{
    std::cout << "visiting ConcreteElementB..." << std::endl;
    vis->VisitConcreteElementB(this);
}

